﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StudyCode.EntityFramework.DBFirst;

namespace StudyCode.EntityFramework
{
    class Program
    {
        static void Main(string[] args)
        {
            //db frist
            var context = new TestEntities();
            context.User.Add(new User()
            {
                Id = 1,
                Name = "Skyven",
                Address = "Mars",
                Age = 25,
                Gender = false,
            });
            context.SaveChanges();
            Console.Read();
        }
    }
}
